package com.sss.hloster07;

import java.util.Comparator;

//定义一个学号比较器
public class NumComparator implements Comparator {
//实现Comparator接口的compare()方法
	public int compare(Object op1, Object op2) {
		Student eOp1 = (Student) op1;
		Student eOp2 = (Student) op2;
		return eOp1.stuNum - eOp2.stuNum;

	}
}
